/**
 * 
 */
package fr.univ_tln.inf9.exaplanning.run;


import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;

import fr.univ_tln.inf9.exaplanning.api.composante.Component;
import fr.univ_tln.inf9.exaplanning.api.composante.Group;
import fr.univ_tln.inf9.exaplanning.api.composante.TrainingPath;
import fr.univ_tln.inf9.exaplanning.api.db.DataBaseManager;
import fr.univ_tln.inf9.exaplanning.api.db.SessionManager;
import fr.univ_tln.inf9.exaplanning.api.utilisateur.Student;
import fr.univ_tln.inf9.exaplanning.api.utilisateur.Teacher;

/**
 * @author emilien
 *
 */
public class TestEmilien {

	/**
	 * @param args
	 * @throws ClassNotFoundException 
	 * @throws NoSuchFieldException 
	 * @throws SecurityException 
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 * @throws NoSuchMethodException 
	 * @throws IllegalArgumentException 
	 * @throws SQLException 
	 * @throws IOException 
	 */
	public static void main(String[] args) throws ClassNotFoundException, SecurityException, NoSuchFieldException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException, SQLException {
		
			Group g1 = Group.findByKey("2A");
			System.out.println(g1.getId());
			System.out.println(g1.getTrainingPathName());
		/*SessionManager maSession = SessionManager.getInstance();
		
		
		Component c = new Component("Ok");
		new TrainingPath("L3 bio", c);
		new TrainingPath("L3 info", c);
		new TrainingPath("L3 pc", c);
		new TrainingPath("L3 mas", c);
		new TrainingPath("L3 droit", c);
		new TrainingPath("L3 corruption", c);
		new TrainingPath("L3 Bien sur", c);
		new TrainingPath("L3 biochimie", c);
		new TrainingPath("L3 biologie", c);
		
		try {
			maSession.saveSession();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
	}

}
